/*
 * @Author: 码上talk|RC
 * @Date: 2020-09-27 16:45:07
 * @LastEditTime: 2021-01-05 16:34:22
 * @LastEditors: 码上talk|RC
 * @Description: 
 * @FilePath: /tacomall-merchant/src/router/routes.js
 * @微信:  13680065830
 * @邮箱:  3189482282@qq.com
 * @oops: Just do what I think it is right
 */
export const routes = [
    {
        name: '/',
        path: '/',
        redirect: '/index'
    },
    {
        name: '/default',
        path: '/default',
        component: () => import('@/layout/default/index'),
        children: [
            {
                name: '/login',
                path: '/login',
                meta: {
                    requiresAuth: false,
                    name: '登录'
                },
                component: () => import('@/pages/login/index')
            },
            {
                name: '/404',
                path: '/404',
                meta: {
                    requiresAuth: false,
                    name: '404页面'
                },
                component: () => import('@/pages/404/index')
            }
        ]
    },
    {
        name: '/auth',
        path: '/auth',
        component: () => import('@/layout/auth/index'),
        children: [
            {
                name: '/index',
                path: '/index',
                meta: {
                    requiresAuth: true,
                    name: '首页'
                },
                component: () => import('@/pages/index/index')
            },
            {
                name: '/search',
                path: '/search',
                meta: {
                    requiresAuth: true,
                    name: '搜索'
                },
                component: () => import('@/pages/search/index')
            },
            {
                name: '/goods-list',
                path: '/goods/list',
                meta: {
                    requiresAuth: true,
                    name: '商品列表'
                },
                component: () => import('@/pages/goods/list')
            },
            {
                name: '/goods-info',
                path: '/goods/info',
                meta: {
                    requiresAuth: true,
                    name: '商品详情'
                },
                component: () => import('@/pages/goods/info')
            },
            {
                name: '/goods-add',
                path: '/goods/add',
                meta: {
                    requiresAuth: true,
                    name: '商品添加'
                },
                component: () => import('@/pages/goods/add')
            },
            {
                name: '/goods-update',
                path: '/goods/update',
                meta: {
                    requiresAuth: true,
                    name: '商品更新'
                },
                component: () => import('@/pages/goods/update')
            },
            {
                name: '/order-list',
                path: '/order/list',
                meta: {
                    requiresAuth: true,
                    name: '订单列表'
                },
                component: () => import('@/pages/order/list')
            },
            {
                name: '/order-info',
                path: '/order/info',
                meta: {
                    requiresAuth: true,
                    name: '订单详情'
                },
                component: () => import('@/pages/order/info')
            },
            {
                name: '/promote-coupon',
                path: '/promote/coupon',
                meta: {
                    requiresAuth: true,
                    name: '优惠券'
                },
                component: () => import('@/pages/promote/coupon')
            },
            {
                name: '/promote-seckill',
                path: '/promote/seckill',
                meta: {
                    requiresAuth: true,
                    name: '商城秒杀'
                },
                component: () => import('@/pages/promote/seckill')
            },
            {
                name: '/account-profile',
                path: '/account/profile',
                meta: {
                    requiresAuth: true,
                    name: '账户资料'
                },
                component: () => import('@/pages/account/profile')
            },
            {
                name: '/account-setting',
                path: '/account/setting',
                meta: {
                    requiresAuth: true,
                    name: '账户设置'
                },
                component: () => import('@/pages/account/setting')
            }
        ]
    },
]